package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Mark extends BaseDomain{
    public static final Integer LEVEL_IRON =1;     // 铁
    public static final Integer LEVEL_COPPER =2;   // 铜
    public static final Integer LEVEL_SILVER = 3;     // 银
    public static final Integer LEVEL_GOLD = 4;     // 金
    private User user;

    private Integer mark;

    private Integer level;
    //定义积分等级
  public String getLevelName() {
        String levelName="";
        if (level == LEVEL_COPPER) {
            levelName = "白银会员";
        } else if(level == LEVEL_SILVER) {
            levelName = "黄金会员";
        }else if(level == LEVEL_GOLD){
            levelName = "钻石会员";
        }else{
            levelName = "青铜菜鸟";
      }
        return levelName;
    }

}